import App from './App'
import uView from '@/uni_modules/uview-ui'
import store from '@/store';

Vue.use(uView)
//vuex的配置
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})

// 引入请求封装，将app参数传递到配置中
require('@/config/request.js')(app)
//引入api
require('@/config/api.js')(app)
//引入工具
require('@/config/utils.js')(app)

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  
  // 引入请求封装，将app参数传递到配置中
  require('@/config/request.js')(app)
  //引入api
  require('@/config/api.js')(app)
  //引入工具
  require('@/config/utils.js')(app)
  
  return {
    app
  }
}
// #endif